Skip to content

Conversation

@KianNH
Copy link
Member

@KianNH KianNH commented Oct 9, 2024

Summary

Add hashes back into entrypoint filenames, disable hoisting.

The hoisted.js file is present in the <head> of every page built, but the content hashes were changing as the scripts imports were identical but the ordering was not.

directRenderScript will be the default in Astro 5 and removes the need for hoisting in the first place, so we're happy to enable it now.

@cloudflare-workers-and-pages
Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 98a7ac6
Status: ✅  Deploy successful!
Preview URL: https://4bfa2f7a.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-13865.cloudflare-docs-7ou.pages.dev

View logs

@KianNH
Copy link
Member Author

KianNH commented Oct 9, 2024

Tested that footnotes/Mermaid (loaded in Head.astro) & other JS like <script> tag on components/pages still work.

@KianNH KianNH merged commit 93af489 into production Oct 9, 2024
12 checks passed
@KianNH KianNH deleted the kian/PCX-13865 branch October 9, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants